package com.crop.back.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * author Luge
 * description: $
 * param: $
 * return: $
 * date: $ $
 */
@Data
public class UserDTO2 implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("分页参数")
    private Integer page = 1;

    @ApiModelProperty("单页大小")
    private Integer pageSize = 5;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户名")
    private String userName;

    private String roleName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("角色ID")
    private Long roleId;

    @ApiModelProperty("状态：0-禁用 1-启用")
    private Integer status;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @ApiModelProperty("是否删除：0-否 1-是")
    private Integer deleted;
}
